<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="demo">
        <p v-my-directive="msg"></p>
    </div>
    <script src="../js/vue.js"></script>
    <script src="./vue-myPlugin.js"></script>
    <script>
        // 插件使用use来安装这个插件
        Vue.use(MyPlugin);
        // 这个是自定义全局指令
        Vue.myGlobalMethod();
       const vm = new Vue({
            el:'#demo',
            data:{
                msg:'acbd'
            }
        })
        vm.$myMethod()
    </script>
</body>
</html>